#include <stdio.h>

int main()
{
    char *p="1234:abcd";

    int i,j;

    sscanf(p,"%x:%x",&i,&j);

    printf("%d %d, %x %x\n", i, j, i, j);

    return 0;
}
